package com.animal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author animal
 * @since 2022-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AnCar对象", description="")
public class AnCar implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "购物车id")
    @TableId(value = "car_id", type = IdType.AUTO)
    private Integer carId;

    @ApiModelProperty(value = "创建时间")
    private Date caCreatTime;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "修改时间")
    private Date caUpdTime;

    @ApiModelProperty(value = "商品id")
    private Integer prId;
    @TableField(exist = false)
    private AnUser anUser;
    @TableField(exist = false)
    private AnProduct anProduct;

    @ApiModelProperty(value = "商品数量")
    private Integer prNum;


}
